package com.example.emailcraft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author scj
 * @since 2025-01-21
 */
@Getter
@Setter
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 加密密码
     */
    private String passwordHash;

    /**
     * 是否锁定
     */
    private int isLocked;

    /**
     * 失败尝试次数
     */
    private int failedAttempts;

    /**
     * 手动设置创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 手动设置修改时间
     */
    private LocalDateTime updatedAt;
}
